//
//  RHParaHeaderView.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/10/28.
//

#import "RHParaHeaderView.h"

@implementation RHParaHeaderView
-(instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame]){
        [self setupUI];
    }
    return self;
}
-(instancetype)init{
    if(self = [super init]){
        [self setupUI];
    }
    return self;
}
-(void) setupUI
{
    QMUILabel *titleLab = [[QMUILabel alloc]init];
   
    titleLab.textColor = kCOLOR_HEX(@"3F4443");
    titleLab.font = [UIFont systemFontOfSize:16];
    [self addSubview:titleLab];
    self.titleLab = titleLab;
    
    UIView *line = kView;
    line.backgroundColor = kCOLOR_HEX(@"EBEDF0");
    [self addSubview:line];
    
    [titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.centerY.mas_offset(0);
    }];
    
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.right.mas_offset(-15);
        make.height.offset(1);
        make.bottom.mas_offset(0);
    }];
}
@end
